﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Runtime.Serialization;

namespace G.SkyDrive.Domain
{
    [DataContract]
    public class Folder
    {
        [DataMember(Name = "id")]
        public string ID { get; set; }

        [DataMember(Name = "from")]
        public From From { get; set; }

        [DataMember(Name = "name")]
        public string Name { get; set; }

        [DataMember(Name = "description")]
        public string Description { get; set; }

        [DataMember(Name = "parent_id")]
        public string ParentId { get; set; }

        [DataMember(Name = "upload_location")]
        public string UploadLocation { get; set; }

        [DataMember(Name = "is_embeddable")]
        public bool IsEmbeddable { get; set; }

        [DataMember(Name = "count")]
        public int Count { get; set; }

        [DataMember(Name = "link")]
        public string Link { get; set; }

        [DataMember(Name = "type")]
        public string Type { get; set; }


        [DataMember(Name = "shared_with")]
        public SharedWith SharedWith { get; set; }

        [DataMember(Name = "created_time")]
        public string CreatedTime { get; set; }

        [DataMember(Name = "updated_time")]
        public string UpdatedTime { get; set; }
    }
    [DataContract]
    public class SharedWith
    {
        [DataMember(Name = "access")]
        public string Access { get; set; }
    }

    [DataContract]
    public class From
    {
        [DataMember(Name = "id")]
        public string ID { get; set; }


        [DataMember(Name = "name")]
        public string Name { get; set; }
    }
}
